package org.hope.nlp;

import org.hope.nlp.stanford.StanfordParser;

public class ParserFactory
{
	public static final String STANFORD_PARSER = "STANFORD";
	
	public static TextParser getTextParser(String name) throws Exception
	{
		if(name.equals( STANFORD_PARSER ))
		{
			return new StanfordParser();
		}
		else
		{
			throw new Exception("Paser not found");
		}
	}
}
